class Cat:
    def __init__(self,name,hobby):
        self.name = name
        self.hobby =hobby
        print(f'{self.name}喜欢{self.hobby}')

    def __str__(self):
        return '确实确实'


cat1 = Cat('旺财','吃屎')
print(cat1)

